#pragma once

typedef struct node{
    int pointNum;
    struct node *next;
}Node;

class graph
{
    private:
        Node* newNode(int num, Node *next);
    public:
        int pointCount;
        int lineCount;
        Node **arr;
        void addLink(int node, int target);
        int echo(int num);
        graph(int nodeNumber);
        ~graph();
};